import { httpReq } from "@/utils/http/http.js"

const login = (data) => {
	return httpReq({
		url: 'user/login',
		method: 'POST',
		data
	})
}

//获取验证码
const getCaptchaImage = (data) => {
  return httpReq({
  	url: 'captcha/image',
  	method: 'GET',
  	data
  })
}

export { login,getCaptchaImage }